package cn.zqy.demo2.day06.ThreadSafe;

public class Demo02TicketSynchrogazed {
    public static void main(String[] args) {
        Runnable run = new RunnableTicketSynchrogazedImpl();
        System.out.println();
        Thread th1 = new Thread(run);
        Thread th2 = new Thread(run);
        Thread th3 = new Thread(run);
        th1.start();
        th2.start();
        th3.start();
    }
}
